using System;
using System.Collections.Generic;
using System.Text;

namespace System.Windows.Forms
{
    /// <summary>
    /// Represents an item in a System.Windows.Forms.ListBox control.
    /// </summary>
    public class ListBoxItem
    {
        #region Private Members
        private string _text = "";
        private string _value = "";
        #endregion Private Members

        #region Public Properties
        public string Text
        {
            set { _text = value; }
            get { return _text; }
        }
        public string Value
        {
            set { _value = value; }
            get { return _value; }
        }
        #endregion Public Properties

        #region Public Methods
        public override string ToString()
        {
            return _text;
        }
        #endregion Public Methods

        #region Constructors
        public ListBoxItem()
        {
        }
        public ListBoxItem(string value)
        {
            _text = value;
            _value = value;
        }
        public ListBoxItem(string text, string value)
        {
            _text = text;
            _value = value;
        }
        #endregion Constructors
    }
}
